package main

import (
	"net/http"
	"io"
	"os"
	"net/url"
)

func main() {
	resp,err := http.Get("http://www.tuicool.com/a/")
	if err != nil {
		println("err ! ",err.Error())
		return
	}

	defer resp.Body.Close()

	//io.Copy(os.Stdout,resp.Body)

	resp ,err = http.PostForm("http://www.tuicool.com/login",url.Values{"authenticity_token":{"O2ze5sh3JOXoGpIClczVX6c0aTmVe22Imelgm1QVOJc="},
		"email":{"bushkarl@qq.com"},
		"password":{"efgh1234"},
		"remember":{"1"},
	})
	if err != nil {
		println("error!",err.Error())
		return
	}
	io.Copy(os.Stdout,resp.Body)



}
